/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package privileges.business;

/**
 *
 * @author JuanFelipe
 */
public class User {
    String name, host, password,grant,compositeKey;
    
    public User(String name, String host, String password, String grant) {
        this.name = name;
        this.host = host;
        this.compositeKey=name+"."+host;
        if(!password.isEmpty())
            this.password = "YES";
        else
            this.password = "NO";
        if(grant.equals("Y"))
            this.grant = "YES";
        else
            this.grant = "NO";
    }
    
    public User() {
        this.compositeKey=name+"."+host;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGrant() {
        return grant;
    }

    public void setGrant(String grant) {
        this.grant = grant;
    }
    public String getCompositeKey(){
        return name+"."+host;
    }
    
    
}
